@echo off
net file 1>NUL || start "" mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c pushd ""%~dp0"" && ""%~s0"" %*","","runas",0)(window.close) && exit

chcp 65001 >nul
IF "%1"=="" (
    echo 请输入版本号 如 1.2.3
    exit
)
SET "version=%1"
@REM 打包目标为linux
set GOOS=linux
go build -o backup
docker build --platform=linux/amd64 -t registry.cn-hangzhou.aliyuncs.com/zhiyizhao/backup:%version% .
docker push registry.cn-hangzhou.aliyuncs.com/zhiyizhao/backup:%version%